package com.hice.demo.sbdbra.exception;

/**
 * 自定义frs异常
 *
 * @author hyson
 * @create 2017-02-23 16:04
 */
public class SbdbraException extends RuntimeException {

    private static final long serialVersionUID = -5684127920378623011L;

    public static final int DEMO = 1;

    int code;

    public SbdbraException(int code) {
        this.code = code;
    }

    public SbdbraException(int code, Exception e) {
        super(e);
        this.code = code;
    }

    public SbdbraException(int code, String msg, Exception e) {
        super(msg, e);
        this.code = code;
    }

    public SbdbraException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
